Python for Data Science: 2 Books in 1. A Practical Beginner’s Guide to learn Python Programming, introducing into Data Analytics, Machine Learning, Web Development, with Hands-on Projects by ERICK THOMPSON

Python for Data Science: 2 Books in 1. A Practical Beginner’s Guide to learn Python Programming, introducing into Data Analytics, Machine Learning, Web Development, with Hands-on Projects by ERICK THOMPSON

Author:ERICK THOMPSON [THOMPSON, ERICK]
Language: eng
Format: azw3, epub
Published: 2020-10-29T00:00:00+00:00


CHAPTER - 13

PROJECTS

Project - 1 (Game)

Before I provide you with your first project, let me quickly shed some light on what you can expect from these projects.

Every project will be unique, as each one of us will have different ideas about how to carry out the task and execute the same. The projects will be designed to provide you with seemingly simple tasks, only to find out that you may have to do a little more than just copying and pasting blocks of code from one file to another.

Use your coding knowledge from all sources, as these will not be bound to individual chapters. Projects are where you will encounter all kinds of problems, situations, and scenarios. To solve these, or finish them successfully, you will need to use various methods right from the beginning, all the way to the end of complex matters like functions, classes, and modules.

I will be providing you with links from which you can download specific modules, libraries, or classes to help further make the process easier. You already know how to import them into your PyCharm using the “from x import y” or “import xyz” method. Try and make a simple-looking scenario complex and interesting. Continue developing these projects with advanced knowledge that you will hopefully gain after this book. A program is never truly complete. Even the best programs and software continue to be updated with newer knowledge, modules, and variations.

Keep on practicing and adding more to these projects. Who knows, you might end up with something far superior and more useful than just a message that says “Hello World” at the end.

Task:

Create a simple game of “Rock, Paper, Scissors,” where the computer randomly generates value and asks the user to input their selection. The result should show whether the user wins or loses, or if it is a draw.

Requirements:

To complete this project, you will need to use the following:

Packages:

From random import randint – This will be your first line of code. Random comes pre-installed and allows you to force the computer to randomize the selection. This will help you in ensuring that every turn is unique and unpredictable.

There are quite a few ways you can complete this project. As a reference, I will share my solution for this project at the end of the book as well.

Please note that I wish to encourage you to explore the world of Python and use your genuine approaches, communicate with the community, and learn better ways to code. For this reason, I will not share the details on the projects moving forward. I will gladly share the answers to questions and solutions to other problems. The rest, I invite you to use your power of deduction and programming to learn better.

So far, we have gone through some exercises, questioned what was right and what was not. We even initiated our very first project, which is quite challenging in all fairness. However, everything hinges on how well you understand your basics. The better you know them,



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(55937)
What's Done in Darkness by Kayla Perrin(26545)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19018)
The Fifty Shades Trilogy & Grey by E L James(18994)
Shot Through the Heart by Mercy Celeste(18894)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17022)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(16902)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16828)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16743)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16367)
The Subtle Art of Not Giving a F*ck by Mark Manson(14287)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14090)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13480)
Scorched Earth by Nick Kyme(12727)
Drei Generationen auf dem Jakobsweg by Stein Pia(10930)
Suna by Ziefle Pia(10858)
Scythe by Neal Shusterman(10292)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9490)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(9337)
This is Going to Hurt by Adam Kay(9119)